-- GENERATED SPELL FOR [Scryer] --


function spell0_10664(pUnit, Event) --@Amplify Damage,n/a--
pUnit:FullCastSpellOnTarget(12738,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10664', 10312, 1)
end

function spell1_10664(pUnit, Event) --@Frost Breath,n/a--
pUnit:FullCastSpellOnTarget(16099,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10664', 12000, 1)
end

function Sorts_10664(pUnit, Event)
local choix_sorts_10664 = math.random(0, 1)
if choix_sorts_10664 == 0 then
pUnit:RegisterEvent('spell0_10664', 1, 1)
end
if choix_sorts_10664 == 1 then
pUnit:RegisterEvent('spell1_10664', 1, 1)
end
end

function mob10664_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_10664', math.random(1500, 3000), 1)
end

function mob10664_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10664_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10664_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(10664, 1, 'mob10664_Action')
RegisterUnitEvent(10664, 2, 'mob10664_Leave')
RegisterUnitEvent(10664, 3, 'mob10664_Kill')
RegisterUnitEvent(10664, 4, 'mob10664_Die')
